home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Portable Patmos / usr / include / rpcsvc / bootparam_prot.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-08  |  1.6 KB  |  83 lines  |  [TEXT/R*ch]

  1. #include <rpc/types.h>
  2. #include <sys/time.h>
  3. #include <sys/errno.h>
  4. #include <nfs/nfsv2.h>
  5. #include <nfs/nfs.h>
  6. #define MAX_MACHINE_NAME 255
  7. #define MAX_PATH_LEN 1024
  8. #define MAX_FILEID 32
  9. #define IP_ADDR_TYPE 1
  10.  
  11. typedef char *bp_machine_name_t;
  12. bool_t xdr_bp_machine_name_t();
  13.  
  14.  
  15. typedef char *bp_path_t;
  16. bool_t xdr_bp_path_t();
  17.  
  18.  
  19. typedef char *bp_fileid_t;
  20. bool_t xdr_bp_fileid_t();
  21.  
  22.  
  23. struct ip_addr_t {
  24.     char net;
  25.     char host;
  26.     char lh;
  27.     char impno;
  28. };
  29. typedef struct ip_addr_t ip_addr_t;
  30. bool_t xdr_ip_addr_t();
  31.  
  32.  
  33. struct bp_address {
  34.     int address_type;
  35.     union {
  36.         ip_addr_t ip_addr;
  37.     } bp_address_u;
  38. };
  39. typedef struct bp_address bp_address;
  40. bool_t xdr_bp_address();
  41.  
  42.  
  43. struct bp_whoami_arg {
  44.     bp_address client_address;
  45. };
  46. typedef struct bp_whoami_arg bp_whoami_arg;
  47. bool_t xdr_bp_whoami_arg();
  48.  
  49.  
  50. struct bp_whoami_res {
  51.     bp_machine_name_t client_name;
  52.     bp_machine_name_t domain_name;
  53.     bp_address router_address;
  54. };
  55. typedef struct bp_whoami_res bp_whoami_res;
  56. bool_t xdr_bp_whoami_res();
  57.  
  58.  
  59. struct bp_getfile_arg {
  60.     bp_machine_name_t client_name;
  61.     bp_fileid_t file_id;
  62. };
  63. typedef struct bp_getfile_arg bp_getfile_arg;
  64. bool_t xdr_bp_getfile_arg();
  65.  
  66.  
  67. struct bp_getfile_res {
  68.     bp_machine_name_t server_name;
  69.     bp_address server_address;
  70.     bp_path_t server_path;
  71. };
  72. typedef struct bp_getfile_res bp_getfile_res;
  73. bool_t xdr_bp_getfile_res();
  74.  
  75.  
  76. #define BOOTPARAMPROG ((u_long)100026)
  77. #define BOOTPARAMVERS ((u_long)1)
  78. #define BOOTPARAMPROC_WHOAMI ((u_long)1)
  79. extern bp_whoami_res *bootparamproc_whoami_1();
  80. #define BOOTPARAMPROC_GETFILE ((u_long)2)
  81. extern bp_getfile_res *bootparamproc_getfile_1();
  82.  
  83.